package com.xtpt.disaster.common.DM;

import com.xtpt.disaster.common.consts.OSTypeEenum;
import com.xtpt.disaster.config.YamlPropertyResourceFactory;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Data
@PropertySource(value = "classpath:config/database.yml",encoding = "utf-8",
        factory = YamlPropertyResourceFactory.class)
@ConfigurationProperties(prefix = "database.dm-config")
public class DMConfig {

    /**
     * 达梦数据库bin路径
     */
    private String binPath;
    /**
     * 数据库所在路径
     */
    private String dbPath;
    /**
     * 数据库所有者
     */
    private String dbOwner;
    /**
     * 达梦服务名
     */
    private String serviceName;
    /**
     * 客户端数据库备份文件位置
     */
    private String backUpDir;

    /**
     * 文件scp传输是否需要密码
     */
    private boolean scpNeedPass;
    /**
     * 备份文件后缀名
     */
    private String backFileExtend;

    /**
     * ini文件路径
     */
    private String ini_path;
}
